/* Gallery Section Styles */
.gallery-section {
    position: relative;
    min-height: 100vh;
}

/* Filter Buttons */
.filter-btn {
    transition: all 0.3s ease;
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 500;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.filter-btn.active {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
}

/* Gallery Cards */
.gallery-card {
    cursor: pointer;
    transition: all 0.4s ease;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    height: 100%;
    background: white;
}

.gallery-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.card-img-container {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-card:hover .card-img-container img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.7));
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .card-overlay {
    opacity: 1;
}

.overlay-content {
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-card:hover .overlay-content {
    transform: translateY(0);
}

/* Badges */
.category-badge {
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* Card Body */
.card-body {
    padding: 1.25rem;
}

.card-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.card-text {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
    padding: 0.75rem 1.25rem;
}

/* Modal Styles */
.modal-image-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image-container img {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Modal Navigation Arrows */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-image-container:hover .modal-nav {
    opacity: 1;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.modal-nav:hover {
    background: rgba(0,0,0,0.8);
    transform: translateY(-50%) scale(1.1);
}

/* Modal Info Panel */
.modal-info {
    background: white;
    padding: 25px;
    border-radius: 10px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.info-section {
    margin-bottom: 1.5rem;
}

.section-title {
    color: #495057;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: #6c757d;
}

.info-item i {
    width: 20px;
    margin-right: 10px;
    color: #0d6efd;
}

/* Search Box */
#searchInput {
    border-radius: 25px;
    border: 2px solid rgba(255,255,255,0.2);
    background-color: rgba(255,255,255,0.1);
    color: white;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

#searchInput:focus {
    background-color: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 0 0 0.25rem rgba(255,255,255,0.1);
    color: white;
}

#searchInput::placeholder {
    color: rgba(255,255,255,0.7);
}

/* Load More Button */
#loadMoreBtn {
    padding: 12px 40px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#loadMoreBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(13, 110, 253, 0.3);
}

/* Empty State */
.empty-state {
    padding: 60px 20px;
}

.empty-state i {
    color: #dee2e6;
    margin-bottom: 20px;
}

/* Animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.gallery-card:nth-child(1) { animation-delay: 0.1s; }
.gallery-card:nth-child(2) { animation-delay: 0.2s; }
.gallery-card:nth-child(3) { animation-delay: 0.3s; }
.gallery-card:nth-child(4) { animation-delay: 0.4s; }
.gallery-card:nth-child(5) { animation-delay: 0.5s; }
.gallery-card:nth-child(6) { animation-delay: 0.6s; }

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-section {
        padding: 2rem 0;
    }
    
    .card-img-container {
        height: 200px;
    }
    
    .modal-image-container {
        min-height: 300px;
    }
    
    .modal-nav {
        width: 40px;
        height: 40px;
        opacity: 1;
    }
    
    .filter-btn {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .card-img-container {
        height: 180px;
    }
    
    .modal-image-container img {
        max-height: 50vh;
    }
    
    #filterButtons {
        gap: 5px;
    }
    
    .filter-btn {
        padding: 5px 12px;
        font-size: 0.85rem;
    }
}